//@author: niweinan
//@file: 11.10作业-倪炜楠.py.py
//@time: 2023/11/15 9:32

package main

import (
	"fmt"
)

func main() {
	var name string
	var passwd string
	fmt.Print("输入用户名：")
	fmt.Scan(&name)
	if name == "root" {
		fmt.Print("输入密码：")
		fmt.Scan(&passwd)
		if passwd == "123456" {
			fmt.Println("登录成功")
		} else {
			fmt.Println("密码错误")
		}
	} else {
		fmt.Println("用户名错误")
	}
}
